import { Utility } from "@/libs/utility"

export const combinedMedicationForm = [
	{
		fieldName: "id",
		fieldCNName: "",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "",
	},
	{
		/** 字段名，如：name */
		fieldName: "examineeCode",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "受试者编号",
		/** 字段的值，如：张三 */
		filedValue: 1,
		disabled: true,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		span: 2,
	},
	{
		disabled: true,
		/** 字段名，如：name */
		fieldName: "examineeName",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "受试者姓名",
		/** 字段的值，如：张三 */
		filedValue: 1,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		rules: {
			required: true, // 只有为true的时候才写，为false这个字段不要
		},
		span: 2,
	},
	{
		disabled: true,
		/** 字段名，如：name */
		fieldName: "filterNo",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "随机号",
		/** 字段的值，如：张三 */
		filedValue: 1,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		disabled: true,
		/** 字段名，如：name */
		fieldName: "groupSeq",
		/** 字段对应的中文解释，如：姓名 */
		fieldCNName: "入组顺序号",
		/** 字段的值，如：张三 */
		filedValue: 1,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		fieldName: "drugName",
		fieldCNName: "药品名称",
		filedValue: "",
		span: 2,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
	},
	{
		fieldName: "drugWay",
		fieldCNName: "给药途径",
		filedValue: "",
		span: 2,
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		itemList: Utility.getDictList("drug_way"),
	},
	{
		fieldName: "drugHz",
		fieldCNName: "给药频率",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		span: 2,
		itemList: Utility.getDictList("drug_hz"),
	},
	{
		fieldName: "aeId",
		fieldCNName: "关联AE",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "select",
		span: 2,
		itemList: [
			// {
			// 	label: "AE1",
			// 	value: "1",
			// },
			// {
			// 	label: "AE2",
			// 	value: "2",
			// },
		],
	},
	{
		fieldName: "drugDosage",
		fieldCNName: "单次剂量",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
		span: 2,
	},
	{
		fieldName: "indiction",
		fieldCNName: "适应症",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "inputText",
	},
	{
		fieldName: "remarks",
		fieldCNName: "备注",
		filedValue: "",
		/** 字段类型，inputText，inputPwd,inputNumber,date,datetime,dateRange,textarea,upload,select,radio,checkbox,switch*/
		type: "textarea",
	},
]
